﻿
<div class="panel panel-default padding-empty">
    <div class="panel-body padding-empty">
        <ol class="breadcrumb margin-empty">
            <li class="breadcrumb-color"><i class="fa fa-home"></i>&nbsp;主页</li>
            <li><a href="#/examReport/planList" class="breadcrumb-link">考试结果管理</a></li>
            <li><a href="javascript:history.go(-1);" class="breadcrumb-link">{{planName}} - 随考结果管理</a></li>
            <li class="active">{{planName}} - 已生成考试结果</li>
        </ol>
    </div>
</div>

<div class="panel panel-default">
    <!--<div class="panel-heading">
        <h3>
            <i class="fa fa-desktop"></i>
            {{planName}} - 已生成
            &nbsp;

            <button class="btn btn-turquoise btn-xs" onclick="javascript:history.go(-1);" title="返回上一页" style="margin-bottom: 0;">
                <i class="fa fa-chevron-left"></i>
            </button>
        </h3>

        <div class="panel-options">
        </div>
    </div>-->

    <div class="panel-body">
        <form class="form-inline">
            <!-- TODO: 2016.09.06 隐藏
            <button class="btn btn-turquoise" ng-click="upload();" ng-disabled="loadingState">
                <i class="fa fa-upload"></i>
                上传
            </button>
            -->
            <button class="btn btn-turquoise" ng-click="download();" ng-disabled="loadingState">
                <i class="fa fa-download"></i>
                上传结果包
            </button>
        </form>

        <table class="table responsive table-bordered table-hover table-condensed">
            <thead>
                <tr class="active">
                    <th class="text-center">
                        <input type="checkbox" ng-click="checkAll();" title="全选" ng-disabled="loadingState" />
                    </th>
                    <th>科目</th>
                    <th>考场</th>
                    <th>生成时间</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="item in list" ng-click="check(item);" style="cursor: pointer;">
                    <td class="text-center" rowspan="{{list[$index].behavior.length}}">
                        <input type="checkbox" id="cbx_{{item.ExamSubjectID}}" value="{{item.ExamSubjectID}}" ng-click="check(item);" ng-disabled="loadingState" />
                    </td>
                    <!--科目-->
                    <td title="{{item.ExamSubjectName}}">
                        {{item.ExamSubjectName | formatLongStr}}
                    </td>
                    <!--考场-->
                    <td title="{{item.ExamRoomName}}">
                        {{item.ExamRoomName | formatLongStr}}
                    </td>
                    <!--生成时间-->
                    <td>
                        {{item.ExamEndTime | formatDate | date: 'yyyy-MM-dd HH:mm:ss'}}
                    </td>
                </tr>
            </tbody>
        </table>

        <h3 class="text-center" ng-show="list.length <= 0">
            <img src="//openexamcdn.open.com.cn/openexam/static/App/images/nodata.jpg" alt="" />
            <!--<small>对不起，没有相关数据！</small>-->
        </h3>
    </div>
</div>
